package com.marktotop.service;

import com.marktotop.entity.LoginLog;
import com.marktotop.response.ResultBean;
import com.marktotop.vo.AdminVO;
import org.omg.CORBA.SystemException;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * ILoginLogService
 *
 * @author WXLD
 * @Data 2021/7/1
 * @Since 1.0
 */
public interface ILoginLogService {

    /**
     * 添加登入日志
     * @param request
     */
    void add(HttpServletRequest request);


    /**
     * 删除登入日志
     *
     * @param id
     * @return
     */
    ResultBean deleteLog(Long id);


    /**
     * 批量删除登入日志
     *
     * @param asList
     * @return
     */
    Boolean batchDeleteLogs(List<Long> asList);


    /**
     * 登录日志列表，分页实现
     *
     * @param currentPage
     * @param size
     * @param loginLog
     * @return
     */
    ResultBean findLoginLogList(Integer currentPage, Integer size, LoginLog loginLog);

    /**
     * 登入报表
     *
     * @param adminVO
     * @return
     */
    List<Map<String, Object>> loginReport(AdminVO adminVO);
}
